home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / LNSEFCTS.ZIP / CANDLES.POV next >
Encoding:
Text File  |  1997-07-18  |  1.9 KB  |  55 lines

  1. // LENS EFFECTS: FLICKERING CANDLE ANIMATION
  2. // *****************************************
  3. // This animation shows how you can use the effect_flicker,
  4. // effect_jitter, and rays_flicker options to animate lens effects.
  5. // It also shows how the options_only variable can be used when
  6. // creating multiple copies of the same lens effect.
  7.  
  8. // BACKGROUND
  9.    plane {z, 20 pigment {rgb <.3, 0, 0>} normal {bumps 1 scale <5, 25, 5>}}
  10.  
  11. // CANDLESTICK
  12.    union {
  13.       cone {<0, 2, 0>, .5, <0, 2.5, 0>, 1 open} sphere {<0, 2, 0>, .6}
  14.       cone {<5, 0, 0>, .5, <5, .5, 0>, 1 open} sphere {<5, 0, 0>, .6}
  15.       cone {<-5, 0, 0>, .5, <-5, .5, 0>, 1 open} sphere {<-5, 0, 0>, .6}
  16.       cylinder {<0, -10, 0>, <0, 2, 0>, .3}
  17.       torus {5, .2 rotate x * 90 clipped_by {box {<-6, -6, -1>, <6, 0, 1>}}}
  18.       torus {1.1, .1 rotate x * 90 translate y * -5} sphere {y * -5, .5}
  19.       pigment {rgb <.8, .7, .2>} finish {phong .8 phong_size 95 reflection .4 metallic}
  20.       no_shadow}
  21.  
  22. // CANDLES
  23.    union {
  24.       cylinder {<0, 2, 0>, <0, 9, 0>, .5}
  25.       cylinder {<5, 0, 0>, <5, 7, 0>, .5}
  26.       cylinder {<-5, 0, 0>, <-5, 6.5, 0>, .5}
  27.       pigment {rgb 1} finish {phong .3 phong_size 3}
  28.       no_shadow}
  29.  
  30. // LIGHTING
  31.    light_source {<0, 40, -80> rgb 1}
  32.  
  33. // CAMERA OPTIONS
  34.    #declare camera_location = <4, 4, -20>
  35.    #declare camera_look_at = <0, 4, 0>
  36.  
  37. // EFFECT OPTIONS
  38.    #declare effect_brightness = 2
  39.    #declare effect_intensity = 2
  40.    #declare effect_type = "Candle"
  41.    #declare options_only = true
  42.    #include "LENS.INC"
  43.  
  44. // EFFECT ANIMATION OPTIONS
  45.    #declare effect_flicker = .2
  46.    #declare rays_flicker = true
  47.    #declare effect_jitter = .1
  48.  
  49. // CREATE MULTIPLE LENS EFFECTS
  50.    #declare effect_location = <0, 10, 0> #include "LNSEFCTS.INC"
  51.    #declare effect_location = <5, 8, 0> #include "LNSEFCTS.INC"
  52.    #declare effect_location = <-5, 7.5, 0> #include "LNSEFCTS.INC"
  53.  
  54.    global_settings {max_trace_level 20}
  55.